// import Vue from 'vue'
// import VueRouter from 'vue-router'
import HomeView from '../views/index.vue'
import share from '../views/share.vue'
import share2 from '../views/share2.vue'
import myprize from '../views/myprize.vue'
import rules from '../views/rules.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: HomeView
  },
  {
    path: '/share',
    name: 'share',
    component: share
  },
  {
    path: '/myprize',
    name: 'myprize',
    component: myprize
  },
  {
    path: '/rules',
    name: 'rules',
    component: rules
  },
  {
    path: '/share2',
    name: 'share2',
    component: share2
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
